package com.example.unittest.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author sjw
 * @className HomeService
 * @date 2020/12/22 17:04
 * @description: TODO
 */

@Service
public class HomeService implements IHomeService {
    @Autowired
    private DbService dbService;
    @Override
    public String hello(String name) {
        return dbService.save(name);
    }

    @Override
    public void set(DbService service) {
        this.dbService=service;
    }
}
